﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IDegreeRepository 
    {
        void CreateDegree(Degree item);
        void UpdateDegree(Degree item);
        void DeleteDegree(int id);

        IEnumerable<Degree> ListDegrees(bool cacheEnabled = true);
        Degree GetDegreeById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
